#! -*- coding:utf-8 -*-
import logging

from common.order_withdraw import handler as order_withdraw_handler
from django.core.management.base import BaseCommand

_LOGGER = logging.getLogger('worker')


# cd /home/ubuntu/af-env/hydra;/home/ubuntu/af-env/bin/python manage.py

class Command(BaseCommand):

    def handle(self, **options):
        print
        'start'
        _LOGGER.info('auto_invalid_order start')
        order_withdraw_handler.auto_invalid()
        _LOGGER.info('auto_invalid_order end')
        print
        'end'
